<?php echo $this->load->view('_elements/registratednavigation'); ?>
        <div id="pLeftContent">
            <?php echo $this->load->view('_elements/SettingsMenu'); ?>
        </div>
        <div id="pCenterContent">
            <div class="titleI"><?php echo $Title; ?></div>
            <div id="ppiPaymentForm" class="blockstyle form" style="width:790px;">
            	
            	<?php echo form_open($this->curl . '/profile_payment_info', 'id="myform" name="myform" autocomplete="off"')?>
            	<?php echo $this->validation->error_string?>
                
                <div id="ppiFirstName" class="formElement">
                    <div class="blue formText"><?php echo $this->user_model->fields['first_name']; ?></div>
                    <?php echo form_input('first_name', $this->validation->first_name, 'class="formInput" style="float: left; margin: 0 75px 0 0;" disabled ="disabled"')?>
                    <div class="blue formText" style="width:110px;"><?php echo T_('Joined HN')?></div>
                    <?php echo form_input('user_created', $user_created, 'class="formInput" style="width:136px;" disabled="disabled"')?>
                </div>
                <div id="ppiLastName" class="formElement">
                    <div class="blue formText"><?php echo $this->user_model->fields['last_name']; ?></div>
                    <?php echo form_input('last_name', $this->validation->last_name, 'class="formInput" disabled ="disabled"')?>
                </div>
                <div id="ppiPhoneNumber" class="formElement">
					<div class="blue formText"><?php echo $this->user_model->fields['phone']; ?></div>
                	<?php echo form_input('phone', $this->validation->phone, 'class="formInput" style="width: 170px;"')?>
                	&emsp;
                	<span class="red" style="font-style:italic;">1-555-123-4567</span>
            	</div>
            	<div id="ppiAddress" class="formElement">
                    <div class="blue formText"><?php echo $this->user_model->fields['address']; ?></div>
                    <?php echo form_input('address', $this->validation->address, 'class="formInput"')?>
                </div>
                <div id="ppiCity" class="formElement">
                    <div class="blue formText"><?php echo $this->user_model->fields['city']; ?></div>
                    <?php echo form_input('city', $this->validation->city, 'class="formInput"')?>
                </div>
                <div id="piCountry" class="formElement">
                     <div class="blue formText"><?php echo $this->user_model->fields['country_ID']; ?></div>
                     <?php echo form_dropdown('country_ID', $this->geo_country_model->getSelectOptions(), $this->validation->country_ID, 'id="id_geo_countries" onchange="loadStates(this.value, \'place_states\',\'\',\'/site\')" class="formSelect" style="width: 215px;"', TRUE)?>
                </div>
                <div id="piState" class="formElement">
                     <div id="place_states">                     
                     </div>
                </div>
                <div id="piZipCode" class="formElement" style="clear: both">
                    <div class="blue formText"><?php echo $this->user_model->fields['zip_code']; ?></div>
                    <?php echo form_input('zip_code', $this->validation->zip_code, 'class="formInput"')?>
                </div>
                
                
                <!-- oleksyk -->
                <div class="card_change" style="display: none;">
	                <div id="piCardType" class="formElement">
	                     <div class="blue formText"><?php echo $this->user_model->fields['card_type']; ?></div>
	                     <?php echo form_dropdown('card_type', $this->config->item('cardTypeitem'), $this->validation->card_type , 'class="formSelect" style="width: 180px;"')?>
	                 </div>
	                 <div id="piCardNumber" class="formElement">
	                     <div class="blue formText"><?php echo $this->user_model->fields['card_number']; ?></div>
	                     <?php echo form_input('card_number', $this->validation->card_number, 'class="formInput"')?>
	                 </div>
	                 <div id="piExpDate" class="formElement">
	                     <div class="blue formText"><?php echo $this->user_model->fields['exp_date']; ?></div>
	                     <?php echo form_dropdown('exp_month', $this->config->item('expMonthitem'), $this->validation->exp_month, 'id="piMonth" class="formSelect" style="width: 100px; margin: 0 20px 0 0;"')?>
	                     <?php echo form_dropdown('exp_year', $this->config->item('expYearitem'), $this->validation->exp_year, 'id="piYear" class="formSelect" style="width: 80px;"')?>
	                 </div>
	                 <div id="piSecurityCode" class="formElement">
	                     <div class="blue formText"><?php echo $this->user_model->fields['security_code']; ?></div>
	                     <?php echo form_input('security_code', $this->validation->security_code, 'class="formInput" style="width: 70px;"')?>
	                     &emsp;
	                     <span class="lightred justify"><?php echo T_('What\'s This?'); ?></span>
	                 </div>
                 </div>
                 
                 
                <!-- oleksyk -->
                <br />
                
                <div id="ppiPaymentMethod" class="formElement">
            <!-- <div class="blue formText"><?php echo $this->user_model->fields['payment_method']; ?></div> -->        
                    <div id="paymentMethod" class="blue formText"><?php echo $this->validation->payment_method.' ending in '.substr($this->validation->card_number, -4).' expires '.$this->validation->exp_month.' '.$this->validation->exp_year ?></div>
                	<input onclick="change_card();" value="<?php echo T_('CHANGE'); ?>" name="change" id="ppiChange" class="red buttonStyle"></input>
                </div>
                <input type="submit" value="<?php echo T_('UPDATE'); ?>" name="enter" id="ppiUpdate" class="red buttonStyle"></input>
                <input type="submit" value="<?php echo T_('VIEW PAYMENT HISTORY'); ?>" name="viewPH" id="ppiViewPaymentHistory" class="red buttonStyle"></input>
                
                <!-- input type="submit" value="<?php echo T_('UPDATE'); ?>" name="enter" id="ppiUpdate" class="red ppiButStyle"></input>
                <input type="submit" value="<?php echo T_('VIEW PAYMENT HISTORY'); ?>" name="viewPH" id="ppiViewPaymentHistory" class="red ppiButStyle"></input-->
            
            	<?php echo form_close()?>
            </div>
        </div>
        <div id="rightcontent">
            <?php echo $this->load->view('_elements/Followrefs'); ?>
        </div>
        <script> 
        	function change_card(){            	
        		 $(".card_change").css("display","block");
        		 $("#ppiPaymentMethod").css("display","none");        		 
        		 
            	};
        </script>